package cmd

import(
	"homework5/mycommand/myCobra"
	"fmt"
	"strconv"
)
var(
	addCmd = &myCobra.Command{
		Use:"add" ,//命令的名称
		Short:"add two numbers",

		Run :func(cmd *myCobra.Command,args[] string){
			a,_:=strconv.Atoi(args[0])
			b,_:=strconv.Atoi(args[1])
			fmt.Printf("The result is %d\n",(a+b))
		},
	}
)
